<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>原型链总结</title>
</head>
<body>
    <script>
        let arr = [];
        console.log(arr.__proto__.__proto__ == Object.prototype);
        console.log(Object.prototype.__proto__);


        let a = {name : "a"};
        let b = {
            name : "b",
            show(){console.log(this.name)}
        };
        let c = {name : "c"};

        Object.setPrototypeOf(a,b);
        Object.setPrototypeOf(c,b);

        console.log(a);
        console.log(c);

        a.show();
        c.show();
    </script>
</body>
</html>